﻿@model List<LbangCMS.Areas.Admin.Models.JobModel>

<table class="table datatable">
    <thead>
        <tr>
            <th data-width="65">#</th>
            <th>职位名</th>
             <th>发布状态</th>
            <th data-width="150">操作</th>
        </tr>
    </thead>
    <tbody>
        @if (Model != null && Model.Any())
        {
            foreach (var item in Model)
            {
                <tr>
                    <td>
                        @item.ID
                        <input type="hidden" class="itemId" value="@item.ID" />
                    </td>
                    <td>@item.JobName</td>
                    <td>@(item.Status?"是":"否")</td>
                    <td>
                        <a href="#" onclick="edit('@item.ID')">编辑</a>&nbsp;
                        <a href="#" onclick="remove_item('@item.ID')">删除</a>
                    </td>
                </tr>
            }
        }
    </tbody>
</table>

@if (Model == null || !Model.Any())
{
    <div class="alert alert-info">@ViewBag.City 暂无职位信息</div>
}